﻿/*---------------------------------------------------------------------------------
-----------------***DaLianQianYi***-----------------------
-----------------作者：大连仟亿科技------------------------------------------------------
-----------------联系作者：www.qianyikeji.com----------------------------------
-----------------时间：2018/8/6 18:06:36------------------------------------------
----------------------------------------------------------------------------------*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Donal.Xms.Model
{
    /// <summary>
    /// actions实体
    /// </summary>
    [Serializable]
    public partial class actions
    {
        public actions()
        { }

        #region Model

        private int _id = 0;
        private string _title = string.Empty;
        private string _contents = string.Empty;
        private DateTime? _start_time = null;
        private DateTime? _end_time = null;
        private int _status = 0;        
        private decimal _conditions_amount = 0;
        private int _sort_id = 99;
        private DateTime? _add_time = null;
        private int _expiration_form = 0;
        private int _action_type = 0;
        private int _category = 0;

        private List<action_coupons> _Coupons = new List<action_coupons>();

        /// <summary>
        /// 0充值活动，1订单活动 2全部
        /// </summary>
        public int category
        {
            set { _category = value; }
            get { return _category; }
        }

        /// <summary>
        /// 活动类型 0 注册 1订单
        /// </summary>
        public int action_type
        {
            set { _action_type = value; }
            get { return _action_type; }
        }

        /// <summary>
        /// 赠送的优惠券
        /// </summary>
        public List<action_coupons> coupons
        {
            set { _Coupons = value; }
            get { return _Coupons; }
        }

        /// <summary>
        ///  优惠券ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        ///  名称
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        ///  描述
        /// </summary>
        public string contents
        {
            set { _contents = value; }
            get { return _contents; }
        }
        /// <summary>
        ///  开始日期
        /// </summary>
        public DateTime? start_time
        {
            set { _start_time = value; }
            get { return _start_time; }
        }
        /// <summary>
        ///  结束日期
        /// </summary>
        public DateTime? end_time
        {
            set { _end_time = value; }
            get { return _end_time; }
        }
        /// <summary>
        ///  状态 0正常 1禁用
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }
      
     
        /// <summary>
        ///  门槛金额
        /// </summary>
        public decimal conditions_amount
        {
            set { _conditions_amount = value; }
            get { return _conditions_amount; }
        }
        /// <summary>
        ///  排序
        /// </summary>
        public int sort_id
        {
            set { _sort_id = value; }
            get { return _sort_id; }
        }
        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime? add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        ///  失效形式 0自动过期 1永不过期
        /// </summary>
        public int expiration_form
        {
            set { _expiration_form = value; }
            get { return _expiration_form; }
        }
        

        #endregion
    }
}


